
import api from './sdk/api/api.js'
import utils from './sdk/tool/utils.js'
import store from './sdk/store'
// #ifndef VUE3
import Vue from 'vue'
import App from './App'

Vue.config.productionTip = false
Vue.prototype.$api = api
Vue.prototype.$utils = utils
Vue.prototype.$store = store

App.mpType = 'app'

const app = new Vue({
	store,
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
import App from './App.vue'
export function createApp() {
  const app = createSSRApp(App)
  app.config.globalProperties.$api = api
  app.config.globalProperties.$utils = utils
  app.use(store)
  return {
    app
  }
}
// #endif